#!/bin/bash

echo "----------------------------------------------"
echo "        Analyse sémantique en cours...        "
echo "----------------------------------------------"
bison -d -o $1sem.c synt$1sem.y && flex -o lex$1sem.c lex$1sem.lex && gcc -o sem$1 $1sem.c lex$1sem.c && ./sem$1 exemple$1.txt
echo "----------------------------------------------"
echo "         Fin de l'analyse sémantique.         "
echo "----------------------------------------------"

